<div class="dialog-body">
    <ul class="dialog-body-ul">
        <li class="dialog-body-li">
            <div class="dialog-body-item">
                <div class="dialog-label">库位分配规则</div>
                <div class="dialog-content">
                    <ui-select ng-model="ngDialogData.stockUnitStrategy">
                        <ui-select-match>
                            <span ng-bind="$select.selected.pyName"></span>
                        </ui-select-match>
                        <ui-select-choices repeat="stockUnitStrategy in ngDialogData.stockUnitStrategyList">
                            <span ng-bind="stockUnitStrategy.pyName"></span>
                        </ui-select-choices>
                        <ui-select-no-choice>
                            没有加载到数据
                        </ui-select-no-choice>
                    </ui-select>
                </div>
            </div>
        </li>
    </ul>
    <table class="layui-table">
        <tbody>
            <tr class="">
                <th>序号</th>
                <th>单据号</th>
                <th>车型</th>
                <th>底盘号</th>
                <th>目的库区</th>
                <th>目的库位</th>
            </tr>
            <tr ng-repeat="autoAssign in ngDialogData.autoAssignList">
                <td ng-bind="$index + 1"></td>
                <td ng-bind="autoAssign.odWaybillNo"></td>
                <td ng-bind="autoAssign.oddVehicleSpecName"></td>
                <td ng-bind="autoAssign.oddVin"></td>
                <td ng-bind="autoAssign.oddWhZoneCode" ng-show="autoAssign.oddWhZoneCode || ngDialogData.firstAssign"></td>
                <td ng-show="!autoAssign.oddWhZoneCode && !ngDialogData.firstAssign">
                    <ui-select ng-model="ngDialogData.dropDownDefault.reservoirDrop[$index]" on-select="selectReservoirDropChang($item,manuallyAssign,$index)">
                        <ui-select-match>
                            <span ng-bind="$select.selected.locZoneCode"></span>
                        </ui-select-match>
                        <ui-select-choices repeat="reservoirDrop in (ngDialogData.reservoirDropArr[$index] | filter: $select.search) track by reservoirDrop.locZoneId">
                            <span ng-bind="reservoirDrop.locZoneCode"></span>
                        </ui-select-choices>
                        <ui-select-no-choice>
                            没有加载到数据
                        </ui-select-no-choice>
                    </ui-select>
                </td>
                <td ng-bind="autoAssign.oddWhLocCode" ng-show="autoAssign.oddWhLocCode || ngDialogData.firstAssign"></td>
                <td ng-show="!autoAssign.oddWhLocCode && !ngDialogData.firstAssign">
                    <ui-select ng-model="ngDialogData.dropDownDefault.storageLocationDrop[$index]">
                        <ui-select-match>
                            <span ng-bind="$select.selected.locCode"></span>
                        </ui-select-match>
                        <ui-select-choices repeat="storageLocationDrop in (ngDialogData.storageLocationDropArr[$index] | filter: $select.search) track by storageLocationDrop.locId">
                            <span ng-bind="storageLocationDrop.locCode"></span>
                        </ui-select-choices>
                        <ui-select-no-choice>
                            没有加载到数据
                        </ui-select-no-choice>
                    </ui-select>
                </td>
            </tr>
        </tbody>
    </table>
</div>

<div class="dialog-toolbar">
    <button class="layui-btn" ng-click="autoAssignSubmitClick()">分配</button>
    <button class="layui-btn" ng-click="autoAssignCommitClick()">保存</button>
    <button class="layui-btn" ng-click="closeThisDialog()">取消</button>
</div>